<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<c:if test="${ loginSuccess == false }">
		<script>
			alert("존재하지 않는 회원이거나 아이디나 비밀번호가 틀립니다.\n다시 입력하세요.");
			location = "listBoard.do";
		</script>
	</c:if>
	<c:if test="${ loginSuccess != false }">
		<c:set var="sessionLoginID" value="${ compareMember.m_id }" scope="session" />
		<script>
			alert( "${ sessionLoginID } 님 환영합니다.\n로그인 처리되었습니다.");
			location = "listBoard.do";
		</script>
	</c:if>
</body>
</html>